package com.itheima.shengxiao2;

public class Demo {

    public static void main(String[] args) {
        Desk desk = new Desk();
        Cookie cookie = new Cookie(desk);
        Foodie foodie = new Foodie(desk);
        Thread t1 = new Thread(cookie);
        Thread t2 = new Thread(foodie);

        t1.start();
        t2.start();


    }
}
